package com.manage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.manage.entity.Pickup;
import com.manage.entity.vo.PieEchartsRes;

import java.util.List;

public interface IPickupService extends IService<Pickup> {

    /**
     * 分页查询领取记录
     * @param current
     * @param size
     * @return
     */
    Page<Pickup> selectListByPage(Integer current, Integer size);

    /**
     * 根据条件查询领取记录
     * @param pickup
     * @return
     */
    List<Pickup> queryByCondition(Pickup pickup);

    /**
     * 保存领取记录
     * @param pickup
     */
    void savePickup(Pickup pickup);

    /**
     * 删除领取记录
     * @param id
     */
    void deleteById(Integer id);

    /**
     * 统计领取记录
     * @return
     */
    List<PieEchartsRes> countForEcharts();
}
